<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="${mvcPath}/res/images/bmcd_favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="${mvcPath}/res/images/bmcd_favicon.ico" type="image/x-icon" />
    <title>
        <sitemesh:write property='title'/>
    </title>
    <link rel="stylesheet" href="${mvcPath}/res/css/minireset.css/minireset.css">
    <link rel="stylesheet" href="${mvcPath}/res/css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${mvcPath}/res/css/animate.css/animate.min.css">
    <#--<link rel="stylesheet" href="${mvcPath}/lib/ued-components/theme-default/ued-components.css">-->

    <link rel="stylesheet" href="${mvcPath}/res/css/common/components.css">
    <link rel="stylesheet" href="${mvcPath}/res/css/common/override.css">
    <link rel="stylesheet" href="${mvcPath}/res/assets/css/style.css">
    <link rel="stylesheet" href="${mvcPath}/res/assets/css/loader-style.css">
    <link rel="stylesheet" href="${mvcPath}/res/assets/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${mvcPath}/res/assets/js/progress-bar/number-pb.css">
    <link rel="stylesheet" href="${mvcPath}/lib/ued-components/theme-default/block.css">
    <style>

        .regular-form .el-input--suffix , .regular-form  .el-input{
            max-width: 210px;
            min-width: 210px;
        }
        .el-pagination__editor{
            border: 0px;
            padding: 0px;
        }
    </style>
    <sitemesh:write property="head"/>
</head>
<body>
<sitemesh:write property="body"/>
<script src="${mvcPath}/lib/jquery/jquery.min.js"></script>
<script src="${mvcPath}/res/lib/sea.js" type="text/javascript"></script>
<script src="${mvcPath}/lib/vue/vue.latest.min.js" type="text/javascript"></script>
<script src="${mvcPath}/res/lib/vue/vue-router.min.js" type="text/javascript"></script>
<#--<script src="${mvcPath}/lib/element-ui/index.js"></script>-->

<script src="${mvcPath}/lib/ued-components/element-ui.latest.js"></script>
<script src="${mvcPath}/lib/axios/axios.min.js" type="text/javascript"></script>
<script src="${mvcPath}/lib/ued-components/ued-components.js" type="text/javascript"></script>

<script src="${mvcPath}/res/js/tip.js" type="text/javascript"></script>
<script src="${mvcPath}/res/js/kun.js" type="text/javascript" ></script>
<script src="${mvcPath}/res/webframe/js/apis.js" type="text/javascript" ></script>
<script type="text/javascript" src="${mvcPath}/res/assets/js/jquery.js"></script>
<script type="text/javascript" src="${mvcPath}/res/assets/js/bootstrap.js"></script>
<script type="text/javascript" src="${mvcPath}/res/assets/js/load.js"></script>
<script type="text/javascript" src="${mvcPath}/res/assets/js/countdown/jquery.countdown.js"></script>
<script src="${mvcPath}/res/assets/js/jhere-custom.js"></script>
<script src="${mvcPath}/res/assets/js/skin-select/skin-select.js"></script>
<script src="${mvcPath}/res/assets/js/custom/scriptbreaker-multiple-accordion-1.js"></script>
<script src="${mvcPath}/res/assets/js/slidebars/slidebars.min.js"></script>
<script src="${mvcPath}/res/assets/js/jquery/jquery.easing.min.js"></script>
<script src="${mvcPath}/res/assets/js/nano/jquery.nanoscroller.js"></script>
<script src="${mvcPath}/res/assets/js/custom/scriptbreaker-multiple-accordion-1.js"></script>
<script>

    var basepath="${mvcPath}";
    var currentUserId="${userInfo.userId}";
    var loginRight =${Session.rights} ;
    String.prototype.hashCode=function () {
        var  h = 0;
        if (h == 0 && this.length > 0) {
            for (var i = 0; i < this.length; i++) {
                h = 31 * h + this.charCodeAt(i);
            }
        }
        return h;
    }
    var allrights = {};
    allrights.init =false;
    var map = {};
    loginRight.forEach(function (data) {
            map[data.moduleCode] = data;
            if(data.moduleUrl){
                allrights[data.moduleUrl] = data;
            }
        });
    loginRight.forEach(function (data) {
            if(data.parentCode){
                if(map[data.parentCode]){
                    var a =map[data.parentCode]
                    if(!a.rights){
                        a.rights = [];
                        a.children = [];
                    }
                    a.rights.push(data.rightCode);
                    a.children.push(data);
                }
            }
        });
    allrights.init = false;
    //allrights.init = false;

    //    http://localhost:8080/dam/
</script>
<sitemesh:write property="page.javascript"/>
</body>
</html>


